home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-08 | 634 b | 16 lines | [TEXT/MPS ] |
- This snippet shows how to grow a window constrained to a grid (i.e.
- only allow a window to grow or shrink by 30 pixels, or whatever).
-
- Now, you might think that using something like DragHook (see the Window
- Manager documentation) would be the best way to approach this. Well, I
- personally don't think so, and a lot of my pragmatic (i.e. those who
- like to ship products instead of talking about them) friends agree. The
- easiest way to do this is just to write a small MyGrowWIndow function
- and use that.
-
- Or, even better, just grab this one demonstrated here, and you're even more
- pragmatic than I!
-
- C.K. Haun <TR>
- Apple DTS
- Aug 94